package pers.exercise.DecoratorPattern;

import pers.exercise.DecoratorPattern.impl.BoldDecorator;
import pers.exercise.DecoratorPattern.impl.SpanNode;

public class Entry {
    
    public static void main(String args[]){
        TextNode n1 = new SpanNode();
        TextNode n2 = new BoldDecorator(new SpanNode());

        n1.setText("hello");
        n2.setText("world");

        System.out.println(n1.getText());
        System.out.println(n2.getText());
    }
}
